<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'application.jsp' starting page</title>

  </head>
  
  <body>
  
  	<c:set var="age" value="34" scope="session"/>
  	
  	<c:set target="${requestScope.user}" property="username" value="alex"/>
  	<c:set target="${sessionScope.map }" property="msg" value="xixihaha"/>
  	
  	<c:remove var="age" scope="session"/>
  	${sessionScope.age }
  	
  	${requestScope.user.username }
  	${sessionScope.map.msg}
  	${requestScope.rkey}
  	<hr/>
  	<c:out value="${requestScope.rkey}" escapeXml="false"></c:out>
  	<hr/>
  	
  	
  	<c:if test="${requestScope.count == 123}">
  		你好
  	</c:if>
  	<c:if test="${requestScope.count != 123}">
  		你好
  	</c:if>
  	<hr/>
  	
  	<c:choose>
  		<c:when test="${requestScope.count == 124}">
  			你好
  		</c:when>
  		<c:when test="${requestScope.count == 125}">
  			你不好
  		</c:when>
  		<c:otherwise>
  			不知道你好不好
  		</c:otherwise>
  	</c:choose>
  	<hr/>
  	
  	<ul>
  		<c:if test="${empty requestScope.list}">
  			没有记录
  		</c:if>
  	
  		<c:forEach items="${requestScope.list}" var="str" varStatus="stat">
  			<li>${stat.count}——${str }</li>
  		</c:forEach>
  	</ul>
  	
  	<hr/>
  	
  	<c:forEach items="${sessionScope.userList }" var="u">
  		${u.username } : ${u.password }<br/>
  	</c:forEach>
  	
  	<hr/>
  	
  	${fn:startsWith(requestScope.user.username,'al')}<br/>
  	
  	${fn:replace(requestScope.user.username,'a','b')}<br/>
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
  </body>
</html>
